/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package jojo.home.wallet.entity.um;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;

/**
 *
 * @author mr.jojo
 */
@Entity
@Table(name = "FW_USER")
public class FwUser implements Serializable {
    
    @Id
    @NotNull
    @Column(name = "USER_ID")
    private Long id;
    
    @NotNull
    @Column(name = "USERNAME")
    private String username;
    
    @NotNull
    @Column(name = "PASSWORD_HASH")
    private String passwordHash;
    
    @NotNull
    @Column(name = "PASSWORD_SALT")
    private String passwordSalt;
    
    @Column(name = "CREATED_DATE")
    @Temporal(TemporalType.DATE)
    private Date createdDate;
    
    @NotNull
    @Column(name = "EMAIL_ADDRESS")
    private String emailAddress;
    
    @NotNull
    @Column(name = "IS_ACTIVE")
    private int isActive;
    
    public FwUser() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPasswordHash() {
        return passwordHash;
    }

    public void setPasswordHash(String passwordHash) {
        this.passwordHash = passwordHash;
    }
    
    public String getPasswordSalt() {
        return passwordSalt;
    }

    public void setPasswordSalt(String passwordSalt) {
        this.passwordSalt = passwordSalt;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public String getEmailAddress() {
        return emailAddress;
    }

    public void setEmailAddress(String emailAddress) {
        this.emailAddress = emailAddress;
    }

    public int getIsActive() {
        return isActive;
    }

    public void setIsActive(int isActive) {
        this.isActive = isActive;
    }
}
